package data {
	
	public class cd_defaults {
		
		public static var cloth : Array = [
			{group:2, id:12213},
			{group:1, id:12203},
			{group:3, id:10633},
			{group:3, id:11521}
		];
		
		public static var hairs : Array = [
			{group:2, id:11685},
			{group:1, id:12199},
			{group:3, id:11359},
			{group:3, id:10995}
		];
		
		public static var masks : Array = [
			{group:1, id:1},
			{group:4, id:2},
			{group:3, id:11},
			{group:2, id:8}
		];
		
		public static var backgrounds: Array = [
			randomBackground(),
			randomBackground(),
			randomBackground(),
			randomBackground()
		];
		
		protected static function randomBackground(): Object {
			return {
				group	: 3,
				id		: 26 + Math.floor(Math.random() * (62-26))
			}
		} 
		
		public static var FACES_PATH: String = clt_servers.DATA_URL + 'faces/';
	
		public static var startData: Array = [
			{
				image: FACES_PATH + 'male.jpg',
				maskID: 1,
//				restoreInfo: {"height":242.49999999999997,"x":22.45,"y":37,"roll":-0.9839983709658586,"width":194}
				restoreInfo: {"roll":-0.9772196459334059,"x":42.1,"y":28.6,"width":154.7278186758171,"height":244.58897490677265}
			},{
				image: FACES_PATH + 'female.jpg',
				maskID: 2,
				restoreInfo: {"x":26,"y":22.65,"roll":0,"width":194,"height":242}
			},{
				image: FACES_PATH + 'deti_2.jpg',
				maskID: 8,
				restoreInfo: {"x":42.4,"y":49.1,"roll":0,"width":160.13655206323136,"height":188.42734292773548}
			},{
				image: FACES_PATH + 'ch01.jpg',
				maskID: 11,
				restoreInfo: {"x":47.65,"y":69.75,"width":137.55171962526214,"height":171.92152199868048,"roll":-2.9312370693499017}
			}
		];		
	}
}